import * as R from "ramda";
function pipe() {
  return async function (ctx: Record<string, any>, next: Function) {
    // let token = store.getters["user/getToken"];
    // // console.log(token,'pack token');
    // //判断地址中是否携带pub路径，携带则无需在headers中拼装token参数，否则反之
    // if(ctx.axios.url.split('/').indexOf('pub')<0){
    //     ctx.axios.headers = R.mergeAll([{'Blade-Auth':'bearer '+ (R.isNil(ctx.extra?.token) || R.isEmpty(ctx.extra.token) ? token.access_token : ctx.extra.token)},ctx.axios.headers]);
    // }
    await next()
  }
}
export default pipe;
